package com.heima.media.controller;

import com.heima.common.dto.ResponseResult;
import com.heima.media.dto.LoginDto;
import com.heima.media.service.IWmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author 请不要叫我高司令
 * @Date 2022/4/12 16:44
 * @Version 1.0
 */

@RestController
@RequestMapping("/login/in")
public class LoginController {

    @Autowired
    private IWmUserService userService;

    /**
     * 自媒体管理端登录
     * @param dto
     * @return
     */
    @PostMapping()
    public ResponseResult login(@RequestBody LoginDto dto) {

        return userService.login(dto);

    }


}
